package com.eastfair.common.api;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.eastfair.boot.request.PageParams;
import com.eastfair.core.base.R;
import com.eastfair.pay.dto.*;
import com.eastfair.pay.vo.SettlementVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "mice-pay/settlement")
public interface SettlementFeign {
    /**
     * 结算保存
     * @param saveDTO
     * @return
     */
    @PostMapping("/settlementSave")
    R settlementSave(@RequestBody  SettlementSaveDTO saveDTO);

    /**
     * 结算列表查询
     */
    @PostMapping("/queryList")
     R<Page<SettlementVO>> queryList(PageParams<SettlementPageQuery> params);

    /**
     *结算列表详情查询
     */
    @GetMapping("/settlementQueryById")
     R<SettlementVO>  settlementQueryById(@RequestParam("settlementId") Long settlementId);
}
